home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
- Do Files
- =================================================================
-
- This archive should contain the following files:
-
- DOFILES.EXE............... Actual program
- DOFILES.DOC............... Documentation
- FILE_ID.DIZ............... BBS description files
- READ.ME................... Update information
- HUCKABEY.TXT.............. Current list of James Huckabey
- software
- SOFTWARE.TXT...............Information on shareware
- ARCHIVE.TXT............... This list of files
-
- Since I do a lot of file trading I found I needed something
- to do archiving automatically for me and more fancy than just a
- batch file. I do not like archives that contain a number of like
- files, that is, ROL, MOD, GL, FLI, etc., or even archived under a
- different name than the contents. I always rearchive files using
- the same name as the contents: MUSIC.ROL becomes MUSIC.ZIP,
- WOW.FLI becomes WOW.ZIP. I get in hundreds of files at a time,
- some times thousands. Hence DOFILES.EXE was developed.
-
- The program is nothing fancy but it saves me a lot of key
- strokes. It will work for any file extension except a blank
- extension. Not sure I am ever going to change this limitation and
- do not foresee myself archiving a lot of files with no
- extensions.
-
- Starting with v2.5 the program now turns off the "read only"
- archive bit using DOS' ATTRIB.EXE program. I did this because,
- perhaps like me, some people might be copying files off of a CD-
- ROM disc and archiving them to send to others. These files are
- normally set to "read only." This way the receiver(s) of the
- file(s) do not get "read only" files. This is to save the hassal
- of not being able to delete them, etc.
-
- I have just found out during the testing of v2.5 that if you
- use the DOS Copy command, at least with DOS 6.2, that DOS turns
- off the "read only" attribute during the copy process. I have no
- idea if DOS did this on earlier versions. Good ole Microsoft
- should have left the attribute bits alone. I have always used X-
- Tree for copying files and it does nothing with the archive bit
- during the copy process.
-
- DoFiles can process up to 2000 records at one time. It uses
- PKZIP.EXE (copyright PKWare) to do it's archiving and it must be
- somewhere in your path. If uses PKZIP's maximum compression when
- creating the archive using the command line options "-a -ex."
-
- All you have to do is unarchive files or copy them from
- other directories or diskettes, change in to that directory and
- do the following:
-
-
-
-
-
-
-
- Syntax: DOFILES ext [destination directory]
-
- Where "ext" is the file extension you are working with.
- Currently the program only works from the current directory,
- which might be changed in a future release. Just easier to do it
- this way since it reduces mistakes. The "destination directory"
- is optional and if not used the archived files are written to the
- current directory.
-
- The program searches the directory for all "ext" files,
- sorts the file names and then as it archives each file it checks
- the destination location for the finished archive. If the archive
- exists then and only then does it erase the original file in the
- current directory. That way as it archives a file it then erases
- the unarchived file freeing up hard drive space. Besides that the
- original file is not need if it is archived. You can always
- unarchive the file(s).
-
- DOFILES ROL D:\ROL
-
- This will archive all the *.ROL files in the current
- directory and write them to D:\ROL deleting each *.ROL file in
- turn after confirmation of archive.
-
- DOFILES MOD
-
- This will archive all *.MOD files in the current directory,
- writing them to the current directory, and delete each *.MOD file
- in turn after confirmation of archiving.
-
- As the program is running it displays the file (record)
- number it is working on. When it is finished with all files it
- displays the start and end times to show you how long it took.
- The archiving can be lengthy depending on the size and number of
- files, system and hard drive speeds.
-
-
- About the Author
-
- I am not asking for any money for this program. If you
- insist on sending me something for my time and effort as well as
- encouragement in writing other programs these contributions will
- not be refused and will be greatly appreciated, but is not
- necessary.
-
- It is my hopes that you find this program useful. If you
- have questions or suggestion please write. If you expect a reply
- please include return postage.
-
- James Huckabey
- 3621-A Fraser Street
- Bellingham, WA 98226-2473 U.S.A.
- (206) 671-2868 (voice, Pacific)
-